import request from '@/http'

export const selectRefIdxCfgAPI = () => request.post('/config/selectRefIdxCfg')

export const selectIdxMemCfgAPI = () => request.post('/config/selectIdxMemCfg')

export const editRefIdxCfgAPI = (data) => request.post('/config/editRefIdxCfg', data)

export const editIdxMemCfgAPI = (data) => request.post('/config/editIdxMemCfg', data)

export const selectCustomerAlertListAPI = (data) => request.post('/alert/selectCustomerAlertList', data)

export const selectCustomerAlertDetailAPI = (data) => request.post('/alert/selectCustomerAlertDetail', data)

export const selectGlobalConfigAPI = () => request.post('/config/selectGlobalConfig')

export const createGlobalConfig = (data) => request.post('/config/createGlobalConfig', data)

export const editGlobalConfig = (data) => request.post('/config/editGlobalConfig', data)

export const enableGlobalConfig = (data) => request.post('/config/enableGlobalConfig', data)

export const getOrgMultiLevel = (data) => request({
  method: 'POST',
  url: '/getOrgMultiLevel',
  data,
  baseURL: '/ms/bc/njl-service/v'
})

export const getUserById = (data) => request({
  method: 'POST',
  url: '/getUserById',
  data,
  baseURL: '/ms/g/hsxone.omc/v'
})

export const selectDistinctYYB = () => request.post('/branchinfoManager/selectDistinctYYB')

export const distinctZqdm = ({jyr, jys, zsdm}) => request.post(`/constituentStock/distinctZqdm?jyr=${jyr}&jys=${jys}&zsdm=${zsdm}`)